package com.nutransit.service;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.mylibrary.mylibrary.util.SessionData;
import com.nutransit.commoncode.Webservice_parametrs;

public class Alarm_Set_After_Device_Rebooted extends BroadcastReceiver implements Webservice_parametrs
{
	private SessionData sessionData;
	@Override
	public void onReceive(Context context, Intent intent) 
	{
		sessionData = new SessionData(context, PACKAGE_NAME);
		
		System.out.println("===========================onReceive");
		String strUerData = sessionData.getString(TAG_user_type);
		
		if(strUerData!=null && !strUerData.equalsIgnoreCase(TAG_user))
			context.startService(new Intent(context, MyService.class));
	} 
}